<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <!-- <li>{{students[0]}}</li>
            <li>{{students[1]}}</li>
            <li>{{students[2]}}</li>
            <li>{{students[3]}}</li> -->
            <li v-for="item in students">{{item}}</li>
        </ul>
    </div>

    <script>
        const app = new Vue({
            el: '#app', // 挂载到id=app上的DOM
            data: {
                students: ['张三', '李四', '王五', '赵六', '刘一', '陈二']
            }
        })
    </script>
</body>
</html>